package me.ezjs.web.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.yaml.snakeyaml.constructor.BaseConstructor;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Date;

/**
 * Created by junli on 2017/8/21.
 */
@RestController
@ApiIgnore
public class IndexController extends BaseConstructor {

    @ApiOperation(value = "启动测试接口", notes = "")
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index() {
        String res = "Welcome to ezjs core application!";
        res += "current time: " + new Date();
        return res;
    }
}
